package cn.xin.org.mapper;

import cn.xin.base.mapper.BaseMapper;
import cn.xin.org.domain.Employee;
import cn.xin.org.query.EmployeeQuery;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;
import org.springframework.stereotype.Service;

import java.util.List;

public interface EmployeeMapper extends BaseMapper<Employee> {

    List<Employee> findByDeptId(Long deptId);

    Employee findByName(String username);

    void addEmployeeRoles(@Param("eid") Long eid,@Param("roles")List<Long> roles);
}
